//
//  ProOrderSubSectionHeader.m
//  BaseProject
//
//  Created by 王洋 on 2020/7/27.
//  Copyright © 2020 王洋. All rights reserved.
//

#import "ProOrderSubSectionHeader.h"

@implementation ProOrderSubSectionHeader

/*
 //待付款
 ProCellOrderType_waitPay  =1,
 //待发货
 ProCellOrderType_send     =2,
 //待收货
 ProCellOrderType_receive  =4,
 //待评价
 ProCellOrderType_evaluate =5,
 //已完成
 ProCellOrderType_finish   =6,
 //取消订单
 ProCellOrderType_cancle   =7,
 //自动关闭
 ProCellOrderType_close    =8
 */

- (void)fillHeaderVithModel:(OrderListModel *)model {
    
    self.orderNumLab.text = [NSString stringWithFormat:@"订单号：%@",model.uodOrderId];

    switch (model.uodStatus) {
        case ProCellOrderType_waitPay:{
            self.orderStatusLab.text = @"待付款";
        } break;
        case ProCellOrderType_send:{
            self.orderStatusLab.text = @"待发货";

        } break;
        case ProCellOrderType_receive:{
            self.orderStatusLab.text = @"待收货";

        } break;
        case ProCellOrderType_evaluate:{
            self.orderStatusLab.text = @"待评价";

        } break;
        case ProCellOrderType_finish:{
            self.orderStatusLab.text = @"已完成";

        } break;
        case ProCellOrderType_cancle:{
            self.orderStatusLab.text = @"用户取消订单";

        } break;
        case ProCellOrderType_close:{
            self.orderStatusLab.text = @"系统自动关闭";

        } break;
        default:
            break;
    }
}
@end
